import request from '@/utils/request'

export function login(data) {
  return request({
    url: 'login',
    method: 'post',
    data
  })
}

export function getInfo(data) {
  return request({
    url: 'member/info',
    method: 'post',
    data
  })
}

export function logout() {
  return request({
    url: 'login/logout',
    method: 'post'
  })
}

export function loginVerify() {
  return request({
    url: 'login/verify',
    method: 'post'
  })
}
// 区号
export function listMobileAreaCode() {
  return request({
    url: 'listMobileAreaCode',
    method: 'post'
  })
}
// 获取验证码
export function sendVerifyCode(data) {
  return request({
    url: 'sendVerifyCode',
    method: 'post',
    data
  })
}
